home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1996 #6
/
Amiga Plus CD - 1996 - No. 06.iso
/
pd
/
grafik
/
raystorm
/
install_raystorm
< prev
next >
Wrap
Text File
|
1996-04-26
|
3KB
|
105 lines
;**************************************************************************
; Install_RayStorm - RayStorm installation script for Installer
;
; Copyright © 1995 Andreas Heumann
;
; $Id: Install_RayStorm,v 1.2 1996/24/01
;
; Installer and Installer project icon
; (c) Copyright 1991-93 Commodore-Amiga, Inc. All Rights Reserved.
; Reproduced and distributed under license from Commodore.
;
; INSTALLER SOFTWARE IS PROVIDED "AS-IS" AND SUBJECT TO CHANGE;
; NO WARRANTIES ARE MADE. ALL USE IS AT YOUR OWN RISK. NO LIABILITY
; OR RESPONSIBILITY IS ASSUMED.
;
;**************************************************************************
(welcome "Welcome to the " @app-name " installation.\n")
; What we are?
(set app-name (cat @app-name " 1.22"))
; "Needs"
(set need-version 37) ; version of operating system need by RayStorm
; These directories are always present
(set dir-pat "(docs|modules|arexx)")
; The source directory name
(set source-dir
(if (= 1 (exists @icon))
(pathonly (expandpath @icon))
(expandpath @icon)
)
)
;**************************************************************************
; Select destination directory for the installation. We suggest the user
; to install to the place from where the installer was started. This is
; since normally this software will be unarchived to its proper location
; and the files don't have to be copied any more.
;**************************************************************************
(procedure select-destination-directory
(transcript "Selecting destination directory for the installation.")
(while
(
(set @default-dest
(askdir
(prompt "Select directory where to install " app-name ".\n"
"You have to create a directory for " app-name " yourself."
)
(help " Here you can specify location where to install "
"the " app-name ".\n"
" Installation can be made on-place. "
"This is recommended if you have already unarchived "
"the " app-name " archive to its final location. "
"In this case "
"most of the files are left where they are. "
"Only necessary files are copied to different "
"positions.\n"
)
(newpath)
(default source-dir)
)
)
(if (= 2 (exists @default-dest))
0
(makedir @default-dest
(infos)
)
)
)
)
)
;**************************************************************************
; Installatation sequence
;**************************************************************************
(message "Please remember during this installation:\n\n"
" Read the instructions provided behind the \"Help\" "
"buttons, if you are not absolutely sure what you are doing.\n"
)
(complete 00)
(transcript "On making " app-name ".")
(select-destination-directory)
(complete 10)
(working "Uncompressing basic files")
(run (cat "lha x " (tackon source-dir "basic.lha ") @default-dest "/ #?"))
(delete "basic.lha")
(complete 50)
(working "Uncompressing executable files")
(run (cat "lha x " (tackon source-dir "exe.lha ") @default-dest "/ #?"))
(delete "exe.lha")
(delete "Install_RayStorm")
(delete "Install_RayStorm.info")
(complete 90)
(message "Installation of "app-name" done.\n"
"Note: To use "app-name" you have to install the example files too.")
(complete 100)
;;; All done!
; EOF